package com.lilingguo.easyserver.pojo;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 服务列表类
 * 记录某服务名下所有实例的信息，便于响应前端数据
 *
 * @Author: 黎铃果
 * @Date: 2020/05/28 16:30
 */
@Data
public class ServiceListInfo implements Serializable {

    private static final long serialVersionUID = 923083792490243L;

    private String serviceName;
    private int totalCount;
    private int validCount;

    /**
     * 0 -> ok (all up)
     * 1 -> warning (not all up)
     * 2 -> error (all down)
     */
    private Integer status = null;

    private List<ServiceInfo> serviceInfos;

}
